package com.wms.mapper;

import com.wms.entity.CategoryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryOrderMapper {
    /**
     * 类别顺序
     * @return
     */
    List<CategoryOrder> queryTree();

    /**
     * 修改显示顺序
     * @param orderNum
     * @return
     */
    int updateCategoryOrder(@Param(value = "id") Integer id, @Param("orderNum") Integer orderNum);
}

